<!-- 修改支付信息 -->
<style>
	.even.active{
		display:none;
	}
</style>
<script>
var pay_type;
$(document).ready(function(){

    // 初始化切换
    pay_type = $('#pay_type').val();
    check();
	
    // 切换显示隐藏
	$("#pay_type").change(function() {
   	 	pay_type = $(this).val();
		check();
    });

    function check() {
        $('.even').removeClass('active');
        // //文本域的显示隐藏
        if(pay_type == 2){
            $('#key5').addClass('active');
            $('#key1').addClass('active');
        }else if(pay_type == 1 || pay_type == 3 || pay_type == 4 || pay_type == 5 || pay_type == 6){
            $('.even').addClass('active');
            $('#key1').removeClass('active');
        }else if(pay_type == 7){
            $('.even').removeClass('active');
            $('#key1').addClass('active');
        }
    }
})
</script>
<form action="" class="form-horizontal" id="pay_revise">
	<table class="table table-bordered" id="pay_table">
		<tr>
			<td class="ter">支付平台:</td>
			<td>
				<select class="form-control pay_platform" id="pay_type" name="pay_type">
		      		<option value="1" selected>聚源</option>
		      		<option value="2">智付</option>
		      		<option value="3">OK付</option>
		      		<option value="4">迅汇宝</option>
		      		<option value="5">乐付宝</option>
		      		<option value="6">秒付</option>
		      		<option value="7">银邦</option>
		      	</select>
			</td>
		</tr>
		<tr>
			<td class="ter">是否为点卡:</td>
			<td>
				<select class="form-control point_card" name="point_card">
		      		<option value="" selected>否</option>
		      		<option value="">是</option>
		      	</select>
		      	<span class="c_red">*默认为否</span>
			</td>
		</tr>
		<tr>
			<td class="ter">支付域名:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="domain_name">
		      	<span class="c_red">*支付域名，只要写域名</span>
			</td>
		</tr>
		<tr>
			<td class="ter">返回地址:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="return_address">
		      	<span class="c_red">*充值成功返回的地址，只要写域名</span>
			</td>
		</tr>
		<tr>
			<td class="ter">商户ID:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="=client_ID">
		      	<span class="c_red">*请输入商户id</span>
			</td>
		</tr>
		<tr id="key1" class="even">
			<td class="ter">商户密钥:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="client_key" value="">
		      	<span class="c_red">*选择智付跟银邦时自动隐藏</span>
			</td>
		</tr>
		<tr id="key2" class="even">
			<td class="ter" >商户私钥:</td>
			<td>
				<textarea class="form-control" name="private_key" value="private_key" id="private_key" cols="30" rows="10" placeholder=""
				></textarea>
				<span class="c_red">*暂时只有智付跟银邦有,选其他平台自动隐藏</span>
			</td>
		</tr>
		<tr id="key3" class="even">
			<td class="ter">商户公钥:</td>
			<td>
				<textarea class="form-control" name="public_key" value="public_key" id="public_key" cols="30" rows="10" placeholder=""></textarea>
				<span class="c_red">*暂时只有智付跟银邦有,选其他平台自动隐藏</span>
			</td>
		</tr>
		<tr id="key4" class="even">
			<td class="ter">服务端公钥:</td>
			<td>
				<textarea class="form-control" name="server_key" value="server_key" id="server__key" cols="30" rows="10" placeholder=""></textarea>
				<span class="c_red">*暂时只有智付跟银邦有,选其他平台自动隐藏</span>
			</td>
		</tr>
		<tr id="key5" class="even">
			<td class="ter">终端号:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="terminal" value="" id="terminal">
		      	<span class="c_red">*暂时只有银邦有,选其他平台自动隐藏</span>
			</td>
		</tr>
		<tr>
			<td class="ter">支付限额:</td>
			<td>
				<input type="text" class="form-control" placeholder="" name="pay_limit" id="pay_limit">
		      	<span class="c_red">*到达支付限额自动停用</span>
			</td>
		</tr>
	</table>
</form>


